import {createWebHistory, createRouter} from 'vue-router'

const routes = [
    {
        path: '/lading',
        name: 'Lading',
        component: () => import('@/pages/landings/index.vue')
    },
    {
        path: '/login',
        name: 'Login',
        component: () => import('@/pages/login/login.vue')
    },
    {
        path: '/signup',
        name: 'Signup',
        component: () => import('@/pages/login/signup.vue')
    },
    {
        path: '/data',
        name: 'Data',
        component: () => import('@/pages/DataEdit/index.vue')
    },
    {
        path: '/',
        name: 'DataEditMap',
        component: () => import('@/pages/DataEdit/dataEditMap.vue')
    },
    {
        path: '/dataEditMap',
        name: 'home',
        // redirect: '/lading'
        component: () => import('@/pages/landings/index.vue')
    },
]

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes,
})

export default router
